// Ofri Keidar 302933981 group 05

package controller;

/**
 * Exception that is thrown when had errors in connection to server 
 */
public class ServerException extends Exception {
	
	private static final long serialVersionUID = -3737991167115854759L; // serial number

	private String errorMsg; // message to describe the error
	
	/**
	 * Constructor- creates a new server exception with given error message
	 * @param errorMSG- message to describe the error occurred
	 */
	public ServerException(String errorMSG) {
		// set member as given value
		this.errorMsg = errorMSG;
	}
	
	/**
	 * Returns the error message
	 */
	public String getMessage() {
		return errorMsg;
	}
}